package per.yhh.xxxtsj.service;

import per.yhh.xxxtsj.entity.Category;
import per.yhh.xxxtsj.entity.Good;
import com.baomidou.mybatisplus.extension.service.IService;
import per.yhh.xxxtsj.entity.PageResult;
import per.yhh.xxxtsj.entity.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yhh
 * @since 2022-04-10
 */
public interface GoodService extends IService<Good> {
    Boolean addGood(Good good);
    PageResult<Good> getGoodsByPageAndKey(String keyword,Integer num, Integer size);
    PageResult<Good> getGoodsByPageAndKeyAndId(Long uid,String keyword,Integer num, Integer size);
    Good buy(User user,Integer gid);
}
